file handling in c lecture